unit Unit3;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ChildWin, ADODB, DB, Grids, DBGrids, StdCtrls, ExtCtrls, DBCtrls,
  ActnList;

type
  TListeDesEtudiantsMDIChild = class(TMDIChild)
    ADOTable1: TADOTable;
    listeUEQuery: TADOQuery;
    DataSource1: TDataSource;
    ueDBLookupListBox: TDBLookupListBox;
    ueEnseigneeGroupBox: TGroupBox;
    Splitter1: TSplitter;
    listeEtuDBGrid: TDBGrid;
    DataSource2: TDataSource;
    ActionList1: TActionList;
    selectUEAction: TAction;
    procedure selectUEActionExecute(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  ListeDesEtudiantsMDIChild: TListeDesEtudiantsMDIChild;

implementation

{$R *.dfm}

procedure TListeDesEtudiantsMDIChild.selectUEActionExecute(Sender: TObject);
var
  text: string;
begin
  inherited;
  text := ueDBLookupListBox.SelectedItem;
  //ShowMessage(text);
  //ShowMessage('nomUE = '+text);

  //DataSource1.Enabled := false;
  //ShowMessage('Disabled datasource');

  //listeUEQuery.Filter := 'nomUE = '+text;
  //ShowMessage('Filter is set');

  //DataSource1.Enabled := true;
  //ShowMessage('Enabled datasource');
end;

end.
